using Tatibah;

namespace Runs
{
	class Program
	{
		// See the DocumetAPI.PDF for the results
        static void Main(string[] args)
        {
            // Create the document
            Document document1 = new Document(@"C:\Tatibah\Results\Runs.docx");

            // Paragraph Constructor with Multiple Runs
            Paragraph paragraph1 = new Paragraph(
                new Run("This is unformatted text. This has a "),
                new Run("bold") { Bold = true },
                new Run(" word and an "),
                new Run("underlined") { UnderLine = true },
                new Run(" word as well!"));

            // Append Paragraph to the Document
            document1.Append(paragraph1);

            // Save the Document
            document1.Save();
            document1.Close();

        }
    }
}
